<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="/static/build/layui.css" media="all">
<%@include file="/common/common.jspf"%>
<script type="text/javascript" src="${ctx}/js/order/order_add.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/order/order_addEntity.shtml">
		<section class="panel panel-default">
		<div class="panel-body">
			<div class="form-group">
				<label class="col-sm-3 control-label">客户名称</label>
				<div class="col-sm-9">
					<input type="text" class="form-control "
						style="display: none" name="orderFormMap.client_no"
						id="workcenter_no" value="${order.client_no}" /> 
					<input type="text" class="form-control" 
						id="workcenter_no" value="${order.clientname}" readonly />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">名称</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh"
							 name="orderFormMap.Name" value="${order.Name}" readonly/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">模具编号</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" readonly
							placeholder="等模具做好后连接" name="orderFormMap.mold_encode" id="workcenter_no" value="${order.mold_encode}" />
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">订单数量</label>
					<div class="col-sm-9">
						<input type="text" class="form-control " required
							placeholder="请输入订单数量" name="orderFormMap.number" >
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">定重</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" placeholder="请输入定重" readonly
							name="orderFormMap.client_weight"  value="${order.client_weight }">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">排产重量</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" placeholder="请输入排产重量" required
							name="orderFormMap.production_weight"  >
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">采购订单号</label>
					<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入采购订单号"
							name="orderFormMap.po_no"  value="${order.po_no }" readonly="readonly">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">客户编码</label>
					<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入客户编码" readonly="readonly"
							name="orderFormMap.client_encode"  value="${order.client_encode }">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">出货日期</label>
					<div class="col-sm-9">
					<input type="text" id="datetimepicker1" name="orderFormMap.shipping_time"  id="shipping_time" placeholder="请选择出货日期" class="form-control" readonly/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">定价方式</label>
					<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入定价方式" readonly
							name="orderFormMap.pricing_method"  value="${order.pricing_method }">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">作业号</label>
					<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入作业号" readonly
							name="orderFormMap.job_number"  value="${order.job_number }">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">单价</label>
					<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入单价" required
							name="orderFormMap.price" />
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">业务员</label>
					<div class="col-sm-9">
					<input type="text" class="form-control"  style="display:none;" readonly
							name="orderFormMap.salesman_id" value="${order.salesman_id }"/>
					<input type="text" class="form-control" readonly
							 value="${order.salesman }"/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">计划员</label>
					<div class="col-sm-9">
					<input type="text" class="form-control"  style="display:none;" readonly
							name="orderFormMap.planner_id" value="${order.planner_id }"/>
					<input type="text" class="form-control" 
							 value="${order.planner }" readonly/>
					</div>
				</div>
			</div>
		<footer class="panel-footer text-right bg-light lter">
		<button type="submit" class="btn btn-success btn-s-xs">新增</button>
		</footer> </section>
	</form>
	<script src="${pageContext.request.contextPath}/laydate/laydate.js"></script>
	<script src="/static/build/layui.js"></script>
	<script type="text/javascript">
	jeDate({
	dateCell:"#shipping_time",
	format:"YYYY-MM-DD hh:mm:ss",
	isinitVal:false,
	isTime:true, 
	isClear:false,
	minDate:"2014-09-19 00:00:00"
	})
</script>
</body>
</html>